package org.jeecg.vo.basedata;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.enums.base.BaseRoomPropertyEnum;
import org.jeecg.enums.base.BaseRoomTypeEnum;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 房间管理  -  导入
 * @Author: jeecg-boot
 * @Date:   2019-07-03
 * @Version: V1.0
 */
@Data
public class BaseRoomExcel {

	@Excel(name = "项目名称", width = 15)
	private String projectName;
	private String projectId;
	private String tenantId;

	@Excel(name = "楼宇名称", width = 15)
	private String floorName;
	private String floorId;

  	@Excel(name = "房间名称", width = 15)
	private String roomName;

  	@Excel(name = "房间楼层", width = 15)
	private String floorNum;

  	@Excel(name = "房间属性", width = 15)
	private String roomProperty;

  	@Excel(name = "房间性质", width = 15)
	private String roomType;

	@Excel(name = "起始收费日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date feeStartDate;


  	@Excel(name = "建筑面积", width = 15)
	private java.math.BigDecimal buildArea;

  	@Excel(name = "使用面积", width = 15)
	private java.math.BigDecimal usageArea;

  	/*@Excel(name = "联系人", width = 15)
	private String contactus;

  	@Excel(name = "业主姓名", width = 15)
	private String name;

  	@Excel(name = "业主电话", width = 15)
	private String phone;

  	@Excel(name = "联系人电话", width = 15)
	private String telphone;

	@Excel(name = "迁入时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date checkInDate;

	@Excel(name = "开始收费时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date chargeTime;*/

	/*public Integer getRoomStatus() {
		return BaseRoomStatusEnum.getValue(this.roomStatus);
	}*/

	public Integer getRoomProperty() {
		return BaseRoomPropertyEnum.getValue(this.roomProperty);
	}

	public Integer getRoomType() {
		return BaseRoomTypeEnum.getValue(this.roomType);
	}
}
